package cn.itcast.domain.company;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Company implements Serializable {
 private String  id;  //主键ID
 private String  name; //企业名称
 @DateTimeFormat(pattern = "yyyy-MM-dd")
 private Date expirationDate; //到期时间
 private String  address;
 private String  licenseId;      //执照编号
 private String  representative; //联系人
 private String  phone;
 private String  companySize;   //企业规模
 private String  industry;      //所属行业
 private String  remarks;
 private Integer  state;
 private Double  balance;
 private String city;

 public Company() {
 }

 public Company(String id, String name, Date expirationDate, String address, String licenseId, String representative, String phone, String companySize, String industry, String remarks, Integer state, Double balance, String city) {
  this.id = id;
  this.name = name;
  this.expirationDate = expirationDate;
  this.address = address;
  this.licenseId = licenseId;
  this.representative = representative;
  this.phone = phone;
  this.companySize = companySize;
  this.industry = industry;
  this.remarks = remarks;
  this.state = state;
  this.balance = balance;
  this.city = city;
 }

 public String getId() {
  return id;
 }

 public void setId(String id) {
  this.id = id;
 }

 public String getName() {
  return name;
 }

 public void setName(String name) {
  this.name = name;
 }

 public Date getExpirationDate() {
  return expirationDate;
 }

 public void setExpirationDate(Date expirationDate) {
  this.expirationDate = expirationDate;
 }

 public String getAddress() {
  return address;
 }

 public void setAddress(String address) {
  this.address = address;
 }

 public String getLicenseId() {
  return licenseId;
 }

 public void setLicenseId(String licenseId) {
  this.licenseId = licenseId;
 }

 public String getRepresentative() {
  return representative;
 }

 public void setRepresentative(String representative) {
  this.representative = representative;
 }

 public String getPhone() {
  return phone;
 }

 public void setPhone(String phone) {
  this.phone = phone;
 }

 public String getCompanySize() {
  return companySize;
 }

 public void setCompanySize(String companySize) {
  this.companySize = companySize;
 }

 public String getIndustry() {
  return industry;
 }

 public void setIndustry(String industry) {
  this.industry = industry;
 }

 public String getRemarks() {
  return remarks;
 }

 public void setRemarks(String remarks) {
  this.remarks = remarks;
 }

 public Integer getState() {
  return state;
 }

 public void setState(Integer state) {
  this.state = state;
 }

 public Double getBalance() {
  return balance;
 }

 public void setBalance(Double balance) {
  this.balance = balance;
 }

 public String getCity() {
  return city;
 }

 public void setCity(String city) {
  this.city = city;
 }

 @Override
 public String toString() {
  return "Company{" +
   "id='" + id + '\'' +
   ", name='" + name + '\'' +
   ", expirationDate=" + expirationDate +
   ", address='" + address + '\'' +
   ", licenseId='" + licenseId + '\'' +
   ", representative='" + representative + '\'' +
   ", phone='" + phone + '\'' +
   ", companySize='" + companySize + '\'' +
   ", industry='" + industry + '\'' +
   ", remarks='" + remarks + '\'' +
   ", state=" + state +
   ", balance=" + balance +
   ", city='" + city + '\'' +
   '}';
 }
}
